import request from '@/utils/request'

// 查询药品订单中间表管理列表
export function listMedicineOrders(query) {
  return request({
    url: '/medical/medicineOrders/list',
    method: 'get',
    params: query
  })
}

// 查询药品订单中间表管理详细
export function getMedicineOrders(id) {
  return request({
    url: '/medical/medicineOrders/' + id,
    method: 'get'
  })
}

// 新增药品订单中间表管理
export function addMedicineOrders(data) {
  return request({
    url: '/medical/medicineOrders',
    method: 'post',
    data: data
  })
}

// 修改药品订单中间表管理
export function updateMedicineOrders(data) {
  return request({
    url: '/medical/medicineOrders',
    method: 'put',
    data: data
  })
}

// 删除药品订单中间表管理
export function delMedicineOrders(id) {
  return request({
    url: '/medical/medicineOrders/' + id,
    method: 'delete'
  })
}
